package com.cmc.cloud.cmclink.doc.vo.voyagebsavo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author 周贤
 * @date 2025/5/30
 */
@Schema(description = "管理后台 - bsa （base space Allocation） 导出 查询参数")
@Data
@EqualsAndHashCode()
@ToString(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class VoyageBsaExportReqVO {

    @Schema(description = "模板标记")
    @NotNull(message = "{VoyageBsaExportReqVO.isTemplate.NotNull}")
    private Boolean isTemplate;

    @Schema(description = "进出口类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotBlank(message = "{VoyageBsaExportReqVO.exImType.NotBlank}")
    private String exImType;

    @Schema(description = "航线代码", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotBlank(message = "{VoyageBsaExportReqVO.laneCode.NotBlank}")
    private String laneCode;

    @Schema(description = "船舶代码")
    private String vesselCode;

    @Schema(description = "航次")
    private String voyage;

    @Schema(description = "港口代码")
    private String polCodes;

    @Schema(description = "etu 时间范围开始")
    private String startTime;

    @Schema(description = "etu 时间范围结束")
    private String endTime;
}
